<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <link rel="icon" href="*{/images/favicon.ico}" type="image/x-icon" />
  <meta http-equiv="P3P" content="CP='NOI NID'">
  <meta http-equiv="_broadcast_from_" Content="1" />
  <script type="text/javascript" src="*{/js/jquery.js}"></script>
  <script type="text/javascript" src="*{/js/func.js}"></script>
  <script type="text/javascript" src="*{/js/base64.js}"></script>
	<title>编译源码</title>
	<link rel=stylesheet href="*{/assets/cm/css/docs.css}">
	<link rel="stylesheet" href="*{/assets/cm/css/codemirror.css}">
	<link rel="stylesheet" href="*{/assets/cm/css/theme/eclipse.css}">
	<link rel="stylesheet" href="*{/assets/cm/addon/display/fullscreen.css}">
	<script type="text/javascript" src="*{/assets/cm/js/codemirror.js}"></script>
	<script type="text/javascript" src="*{/assets/cm/js/mode/javascript.js}"></script>
	<script src="*{/assets/cm/addon/display/fullscreen.js}"></script>
<style type="text/css">
html, body { padding:0px; margin:0px; width:100%; height:100%;}
p { font-size:12px; }
p .keywords { color:#800; }
.CodeMirror {width:100%;height:100%;}
</style>
</head>
<body style="overflow:auto;">
<div id="code" style="width:100%;height:100%;"></div>
<script type="text/javascript">
$(document).ready(function(e) {
 loadCode();
 editor.refresh();
});

var editor; //编辑器
function loadCode(){
  var res = getUrlValue("*{/N100015.ha}","xmlString="+encodeURIComponent("<%=r:xml_string%>"));
	editor = CodeMirror($("#code")[0], {
			lineNumbers: true,
      readOnly : true,
			theme: "eclipse",
			extraKeys: {
				"F11": function(cm) {
				  cm.setOption("fullScreen", !cm.getOption("fullScreen"));
				},
				"Esc": function(cm) {
				  if (cm.getOption("fullScreen")) cm.setOption("fullScreen", false);
				}
			},
			value:res
		  });
}
</script>
</body>
</html>